#coding=utf-8
from django.contrib import admin
from models import *

class BlogAdmin ( admin.ModelAdmin ) :
    list_display = ( 'mtitle', 'mdirector','mactor','mpic', 
                     'mcdate','mcontent','user',
                     'mcategory','status','created_at','updated_at',)
    list_display_links =('mtitle',)
    list_filter = ( 'user','mtitle','status', 'mcdate', 'created_at', 'updated_at',)
    ordeing = ( 'mcdate', '-created_at' ,  '-updated_at',)
    search_fields = ( 'mtitle', 'user','mcontent',)
    
admin.site.register ( ManageContent, BlogAdmin )